﻿using System;
using System.Collections.Generic;
using System.Text;
using EnCor.Config;
using System.Configuration;

namespace EnCor.Logging
{
    public class LoggerConfig : NamedConfigurationElement
    {
        const string STR_Appender = "appender";
        const string STR_Level = "level";

        [ConfigurationProperty(STR_Appender, IsRequired=true)]
        public string Appender
        {
            get 
            {
                return (string)this[STR_Appender];            
            }
        }

        [ConfigurationProperty(STR_Level, DefaultValue="Error")]
        public string Level
        {
            get
            {
                return (string)this[STR_Level];
            }
        }

    }
}
